package com.xiangban.yanglaodajie_admin.dao;

import com.xiangban.yanglaodajie_admin.entity.*;
import com.xiangban.yanglaodajie_admin.entity.Shop;
import com.xiangban.yanglaodajie_admin.entity.dto.OrdersDto;
import com.xiangban.yanglaodajie_admin.entity.dto.PermissionMenuDto;
import com.xiangban.yanglaodajie_admin.entity.dto.ShopDto;
import com.xiangban.yanglaodajie_admin.entity.dto.ShopLoginDto;
import org.springframework.stereotype.Repository;

import java.util.ArrayList;
import java.util.List;

/**
 * @Author Mr. MaYaYun
 * @Data 2021/5/28 10:02
 */
@Repository
public interface ShopMapper {
    List<RegionCity> selectRegionCity();
    OrdersDto selectOrdersInfo(Orders orders);
    void updateShopInfo(Shop shop);
    ShopDto selectShopInfo(Shop shop);
    ShopDto findWaitDestroy(Orders orders);
    ShopDto findWaitRefund(Orders orders);
    ShopDto findWaitConfirm(Orders orders);
    ShopDto findWaitTakes(Orders orders);
    OrdersDto findAllOrderPrice(Orders orders);
    OrdersDto findOrdersNumber(Orders orders);
    OrdersDto findTodayIntegral(Orders orders);
    List<OrdersDto> getOrdersList(OrdersDto ordersDto);
    void updateStatus(Orders orders);
    ShopLogin shopInfoByUserNameAndPhone(ShopLogin shopLogin);
    ShopLoginDto getShopInfo(ShopLogin shopLogin);
    List<PermissionMenuDto> getMenuAndPermission(PermissionMenuDto permissionMenuDto);
    ArrayList<String> getPermission(List<PermissionMenuDto> permissionMenuDto);
}
